import request from '@/utils/request'

const propertyApi = {
  standard: '/api/wy_sfbz/getWY_SFBZList',
  queryStandardName: '/api/wy_sfbz/judgeWY_SFBZName',
  standardInfo: '/api/wy_sfbz/getWY_SFBZByID',
  setStandard: '/api/wy_sfbz/Post_WY_SFBZ',
  pay: '/api/wy_zjgl/Get_WY_ZJGL_SJ_List',
  setPay: '/api/wy_zjgl/Post_WYF_ZJGL_JZ',
  setPaymentDays: '/api/wy_zjgl/Post_ZC_WYF_ZQ',
  propertyInfo: '/api/wy_zjgl/Get_WYF_SJ_ByID',
  setProperty: '/api/wy_zjgl/Post_WYF_FW_JBXX',
  calculation: '/api/wy_zjgl/Get_WYF_ZJ_OR_SJ',
  flowStatus: '/api/wy_zjgl/Post_WYF_ZJGL_LSSH',
  urgeRecordList: '/api/jy_zjgl/Get_QZCJ_FSDX_List'
}

export function getStandardList (params) {
  return request({
    url: propertyApi.standard,
    method: 'get',
    params
  })
}

export function queryStandardName (params) {
  return request({
    url: propertyApi.queryStandardName,
    method: 'get',
    params
  })
}

export function getStandardInfo (params) {
  return request({
    url: propertyApi.standardInfo,
    method: 'get',
    params
  })
}

export function setStandard (data) {
  return request({
    url: propertyApi.setStandard,
    method: 'post',
    data
  })
}

export function getPayList (params) {
  return request({
    url: propertyApi.pay,
    method: 'get',
    params
  })
}

export function setPay (data) {
  return request({
    url: propertyApi.setPay,
    method: 'post',
    data
  })
}

export function setPaymentDays (data) {
  return request({
    url: propertyApi.setPaymentDays,
    method: 'post',
    data
  })
}

export function getPropertyInfo (params) {
  return request({
    url: propertyApi.propertyInfo,
    method: 'get',
    params
  })
}

export function setProperty (data) {
  return request({
    url: propertyApi.setProperty,
    method: 'post',
    data
  })
}

export function getCalculationMoney (params) {
  return request({
    url: propertyApi.calculation,
    method: 'get',
    params
  })
}

export function flowStatus (data) {
  return request({
    url: propertyApi.flowStatus,
    method: 'post',
    data
  })
}

export function getUrgeRecordList (params) {
  return request({
    url: propertyApi.urgeRecordList,
    method: 'get',
    params
  })
}
